
function getParams() {
    var search = location.search
    search = search.replace('?', '')
    var arr = search.split('&')
    var obj = {}
    for (var item of arr) {
        var list = item.split('=')
        obj[list[0]] = list[1]
    }
  
    return obj
}

var parmas = getParams()
if (parmas.state == 'pre') {
    location.href = 'https://s-busi.xueerqin.net/study/static/signUp.html?code=' + parmas.code
}